package com.zyao89.view.zweb.javascript;

/**
 * @author Zyao89
 * 2017/11/6.
 */
public interface IZRenderListener {
    /**
     * onCreated
     *
     * @param frameworkID
     * @param oSize
     */
    void onCreated(String frameworkID, String oSize);

    /**
     * onException
     *
     * @param frameworkID
     * @param errCode
     * @param oMsg
     */
    void onException(String frameworkID, long errCode, String oMsg);

    /**
     * onRequire
     *
     * @param frameworkID
     * @param oData
     */
    void onRequire(String frameworkID, String oData);

    /**
     * onMessage
     *
     * @param frameworkID
     * @param oJson
     */
    void onMessage(String frameworkID, String oJson);

    /**
     * onDestroy
     *
     * @param frameworkID
     */
    void onDestroy(String frameworkID);

    /**
     * onLog
     *
     * @param frameworkID
     * @param oData
     */
    void onLog(String frameworkID, String oData);
}
